package com.daxt.model.service.base.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.daxt.model.dic.DicDocFrom;
import com.daxt.model.service.accept.vo.DicDocFroms;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "部门", description = "部门")
@TableName("base_dept")
public class Dept implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	//@TableId(value = "id", type = IdType.AUTO)
	@TableId(value = "id", type = IdType.NONE)
	private Long id;
	
	@ApiModelProperty(value = "上级id", name = "tenantId")
	private Long parentId;
	@ApiModelProperty(value = "全宗id", name = "fondsId")
	private Long fondsId;
	@ApiModelProperty(value = "全宗名称", name = "fondsName")
	private String fondsName;
	@ApiModelProperty(value = "类型id", name = "typeId")
	private String typeId;
	@ApiModelProperty(value = "部门ID", name = "deptName")
	private String deptName;
	@ApiModelProperty(value = "排序", name = "sort")
	private int sort;
	@ApiModelProperty(value = "负责人", name = "leader")
	private String leader;
	@ApiModelProperty(value = "外部ID", name = "extId")
	private String extId;

	@ApiModelProperty(value = "所有父组织机构ID", name = "pids")
	private String pids;
	@ApiModelProperty(value = "组织机构编码", name = "deptCode")
	private String deptCode;
	@ApiModelProperty(value = "父组织机构编码", name = "pDeptCode")
	private String pDeptCode;

	@ApiModelProperty(value = "部门级别", name = "deptRank")
	private String deptRank;

	@TableField(exist = false)
	private List<Dept> children=new ArrayList<Dept>();

	@TableField(exist = false)
	private List<DicDocFroms> dicDocFromList;

}
